<script lang="ts" setup name="createActivity">
import ActivityBox from "./components/ActivityBox.vue";
import { activityList, recommendActivityList } from "./activityList";
import { useRouter } from "vue-router";
const router = useRouter();
</script>

<template>
  <div class="activity-box">
    <div class="recommend-activity">
      <div class="title">推荐活动</div>
      <div class="content">
        <div class="box" v-for="item in recommendActivityList" :key="item.value">
          <ActivityBox :data="item" @goDetail="router.push($event)" />
        </div>
      </div>
    </div>
    <div class="all-activity">
      <div class="title">全部活动</div>
      <div class="content">
        <div class="box" v-for="item in activityList" :key="item.value">
          <ActivityBox :data="item" @goDetail="router.push($event)" />
        </div>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
@import "./index.scss";
</style>
